home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-desktop-9.10-i386-PL.iso / casper / filesystem.squashfs / var / lib / dpkg / info / usplash.preinst < prev    next >
Text File  |  2009-10-27  |  1KB  |  34 lines

  1. #!/bin/sh -e
  2.  
  3. if [ "$1" = install ] || [ "$1" = upgrade ]; then
  4.     if dpkg --compare-versions "$2" lt-nl "0.5.24"; then
  5.         # migrate old rc symlinks
  6.         for l in 0 1 6; do
  7.             if [ -L /etc/rc$l.d/K01usplash ] && ! [ -e /etc/rc$l.d/K02usplash ]; then
  8.                 mv /etc/rc$l.d/K01usplash /etc/rc$l.d/K02usplash
  9.             fi
  10.         done
  11.     fi
  12.  
  13.     if dpkg --compare-versions "$2" lt-nl "0.5.41"; then
  14.     # Merged into a single config
  15.     rm -f /etc/init/usplash-down.conf
  16.     fi
  17. fi
  18.  
  19. # Automatically added by dh_installinit
  20. if [ "$1" = install ] || [ "$1" = upgrade ]; then
  21.     if [ -e "/etc/init.d/usplash" ] && [ ! -L "/etc/init.d/usplash" ]; then
  22.         if [ "`md5sum \"/etc/init.d/usplash\" | sed -e \"s/ .*//\"`" != \
  23.              "`dpkg-query -W -f='${Conffiles}' usplash | sed -n -e \"\\\\' /etc/init.d/usplash '{s/ obsolete$//;s/.* //p}\"`" ]
  24.         then
  25.             echo "Obsolete conffile /etc/init.d/usplash has been modified by you, renaming to .dpkg-bak"
  26.             mv -f "/etc/init.d/usplash" "/etc/init.d/usplash.dpkg-bak"
  27.         else
  28.             rm -f "/etc/init.d/usplash"
  29.         fi
  30.     fi
  31. fi
  32. # End automatically added section
  33.  
  34.